package cn.itcast.domain;

public class Person {
    private String name = "张三";
    private Integer age ;

    public String username = "傻逼";

    public void eat(){
        System.out.println("eat...");
    }

    public void eat(String s){
        System.out.println("eat...  " + s);
    }

    public Person(String name, Integer age, String username) {
        this.name = name;
        this.age = age;
        this.username = username;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", username='" + username + '\'' +
                '}';
    }

    public Person() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Person(String name, Integer age) {
        this.name = name;
        this.age = age;
    }
}
